Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rds_cluster_snapshot_copy resource #40398

Merged
merged 16 commits into from
Dec 13, 2024

Conversation

RFHold
Copy link
Contributor

@RFHold RFHold commented Dec 3, 2024

Description

This adds a resource aws_db_cluster_snapshot_copy, which behaves similarly to an existing aws_db_snapshot_copy resource.

Relations

Closes #27926.
Closes #39230.
Closes #40429.

References

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CopyDBClusterSnapshot.html

Output from Acceptance Testing

%  make testacc TESTS="TestAccRDSClusterSnapshotCopy" PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSClusterSnapshotCopy'  -timeout 360m
2024/12/03 14:28:39 Initializing Terraform AWS Provider...
=== RUN   TestAccRDSClusterSnapshotCopy_basic
=== PAUSE TestAccRDSClusterSnapshotCopy_basic
=== RUN   TestAccRDSClusterSnapshotCopy_share
=== PAUSE TestAccRDSClusterSnapshotCopy_share
=== RUN   TestAccRDSClusterSnapshotCopy_tags
=== PAUSE TestAccRDSClusterSnapshotCopy_tags
=== RUN   TestAccRDSClusterSnapshotCopy_disappears
=== PAUSE TestAccRDSClusterSnapshotCopy_disappears
=== RUN   TestAccRDSClusterSnapshotCopy_destinationRegion
=== PAUSE TestAccRDSClusterSnapshotCopy_destinationRegion
=== RUN   TestAccRDSClusterSnapshotCopy_kmsKeyID
=== PAUSE TestAccRDSClusterSnapshotCopy_kmsKeyID
=== CONT  TestAccRDSClusterSnapshotCopy_basic
=== CONT  TestAccRDSClusterSnapshotCopy_disappears
=== CONT  TestAccRDSClusterSnapshotCopy_tags
=== CONT  TestAccRDSClusterSnapshotCopy_kmsKeyID
=== CONT  TestAccRDSClusterSnapshotCopy_destinationRegion
=== CONT  TestAccRDSClusterSnapshotCopy_share
--- PASS: TestAccRDSClusterSnapshotCopy_basic (215.56s)
--- PASS: TestAccRDSClusterSnapshotCopy_destinationRegion (220.61s)
--- PASS: TestAccRDSClusterSnapshotCopy_share (222.70s)
--- PASS: TestAccRDSClusterSnapshotCopy_kmsKeyID (334.64s)
--- PASS: TestAccRDSClusterSnapshotCopy_disappears (334.93s)
--- PASS: TestAccRDSClusterSnapshotCopy_tags (361.27s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/rds        364.838s

Copy link

github-actions bot commented Dec 3, 2024

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/rds Issues and PRs that pertain to the rds service. generators Relates to code generators. needs-triage Waiting for first response or review from a maintainer. labels Dec 3, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @RFHold 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@RFHold RFHold marked this pull request as ready for review December 3, 2024 19:58
@RFHold RFHold requested a review from a team as a code owner December 3, 2024 19:58
@jar-b jar-b removed the needs-triage Waiting for first response or review from a maintainer. label Dec 3, 2024
@jar-b jar-b self-assigned this Dec 3, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 3, 2024
jar-b
jar-b previously approved these changes Dec 12, 2024
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

% make testacc PKG=rds TESTS=TestAccRDSClusterSnapshotCopy_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSClusterSnapshotCopy_'  -timeout 360m
2024/12/12 15:40:56 Initializing Terraform AWS Provider...

--- PASS: TestAccRDSClusterSnapshotCopy_kmsKeyID (217.88s)
--- PASS: TestAccRDSClusterSnapshotCopy_destinationRegion (227.03s)
--- PASS: TestAccRDSClusterSnapshotCopy_disappears (228.51s)
--- PASS: TestAccRDSClusterSnapshotCopy_basic (230.86s)
--- PASS: TestAccRDSClusterSnapshotCopy_tags (238.90s)
--- PASS: TestAccRDSClusterSnapshotCopy_share (369.76s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/rds        375.068s

@ewbankkit ewbankkit added the new-resource Introduces a new resource. label Dec 13, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccRDSClusterSnapshotCopy_' PKG=rds ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 4  -run=TestAccRDSClusterSnapshotCopy_ -timeout 360m
2024/12/13 10:18:16 Initializing Terraform AWS Provider...
=== RUN   TestAccRDSClusterSnapshotCopy_basic
=== PAUSE TestAccRDSClusterSnapshotCopy_basic
=== RUN   TestAccRDSClusterSnapshotCopy_share
=== PAUSE TestAccRDSClusterSnapshotCopy_share
=== RUN   TestAccRDSClusterSnapshotCopy_tags
=== PAUSE TestAccRDSClusterSnapshotCopy_tags
=== RUN   TestAccRDSClusterSnapshotCopy_disappears
=== PAUSE TestAccRDSClusterSnapshotCopy_disappears
=== RUN   TestAccRDSClusterSnapshotCopy_destinationRegion
=== PAUSE TestAccRDSClusterSnapshotCopy_destinationRegion
=== RUN   TestAccRDSClusterSnapshotCopy_kmsKeyID
=== PAUSE TestAccRDSClusterSnapshotCopy_kmsKeyID
=== CONT  TestAccRDSClusterSnapshotCopy_basic
=== CONT  TestAccRDSClusterSnapshotCopy_disappears
=== CONT  TestAccRDSClusterSnapshotCopy_tags
=== CONT  TestAccRDSClusterSnapshotCopy_share
--- PASS: TestAccRDSClusterSnapshotCopy_disappears (207.10s)
=== CONT  TestAccRDSClusterSnapshotCopy_kmsKeyID
--- PASS: TestAccRDSClusterSnapshotCopy_basic (331.28s)
=== CONT  TestAccRDSClusterSnapshotCopy_destinationRegion
--- PASS: TestAccRDSClusterSnapshotCopy_share (340.16s)
--- PASS: TestAccRDSClusterSnapshotCopy_tags (349.14s)
--- PASS: TestAccRDSClusterSnapshotCopy_kmsKeyID (246.14s)
--- PASS: TestAccRDSClusterSnapshotCopy_destinationRegion (254.84s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rds	591.589s

@jar-b
Copy link
Member

jar-b commented Dec 13, 2024

Thanks for your contribution, @RFHold! 👍

@jar-b jar-b merged commit e3c14a8 into hashicorp:main Dec 13, 2024
48 checks passed
@github-actions github-actions bot added this to the v5.82.0 milestone Dec 13, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 19, 2024
Copy link

This functionality has been released in v5.82.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-resource Introduces a new resource. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
3 participants